$('form').Validform({
				tiptype: function(msg, o, cssctl) {
					var $parent = o.obj.parent();
					var isHave = $parent.find(".msg").length>0;
					if(!isHave){
						var $msg = $('<div class="msg"></div>')
						$parent.append($msg);
					}
					//通过验证
					if(o.type == 2){
						$parent.find(".msg").remove();
					}
					//验证失败
					if(o.type == 3){
						$parent.find(".msg").text(msg);
						
					}
					
				}
			});
for(var i=2021;i>=1900;i--){
	$('<div>'+i+'年</div>').appendTo('.register-content-c-year-pull-num')
}
for(var j=1;j<=12;j++){
	$('<div>'+j+'月</div>').appendTo('.register-content-c-month-pull-num')
}
for(var k=1;k<=31;k++){
	$('<div>'+k+'日</div>').appendTo('.register-content-c-day-pull-num')
}
// 国家地区点击下拉命令
$('.register-content-c-country-r>span').click(function(){
	$('.register-content-c-country-r-pull').toggle();
});
$('.register-content-c-country-r-pull-name div').click(function(){
	$('.register-content-c-country-r-pull').hide();
	var country=$(this).text()
	$('.register-content-c-country-choose').text(country);
})
// $('.register-content-c-country-r-pull-ser-btn').click(function(){
// 	var countrytext = $("#register-content-c-country-r-pull-ser>input").val();
// 	$('register-content-c-country-r-pull-name>div:contains(' + countrytext + ')').css(
// 		'background-color', 'orange!important');
// })
// 手机号点击下拉命令
$('.register-content-c-tel-l>span').click(function(){
	$('.register-content-c-tel-l-pull').toggle();
});
$('.register-content-c-tel-l-pull-name div').click(function(){
	$('.register-content-c-tel-l-pull').hide();
	var country=$(this).text()
	$('.register-content-c-tel-choose').text(country);
})
$('.register-content-c-tel-ser input').focus(function(){
	$('.register-content-c-tel').css('border','1px solid rgb(0, 125, 255)');
})
$('.register-content-c-tel-ser input').blur(function(){
	$('.register-content-c-tel').css('border','none');
})
// 出生日期点击下拉命令
$('.register-content-c-date-r-year>span').click(function(){
	
	$('.register-content-c-month-pull').hide()
	$('.register-content-c-day-pull').hide()
	$('.register-content-c-year-pull').toggle();
});
$('.register-content-c-year-pull-num div').click(function(){
	$('.register-content-c-year-pull').hide();
	var year=$(this).text()
	$('.register-content-c-year-choose').text(year);
})
$('.register-content-c-date-r-month>span').click(function(){
	$('.register-content-c-year-pull').hide()
	
	$('.register-content-c-day-pull').hide()
	$('.register-content-c-month-pull').toggle();
});
$('.register-content-c-month-pull-num div').click(function(){
	$('.register-content-c-month-pull').hide();
	var month=$(this).text()
	$('.register-content-c-month-choose').text(month);
})
$('.register-content-c-date-r-day>span').click(function(){
	$('.register-content-c-year-pull').hide()
	$('.register-content-c-month-pull').hide()
	
	$('.register-content-c-day-pull').toggle();
});
$('.register-content-c-day-pull-num div').click(function(){
	$('.register-content-c-day-pull').hide();
	var day=$(this).text()
	$('.register-content-c-day-choose').text(day);
})
// 密码显示隐藏命令
$('.register-content-c-password-icon').click(function(){
	if($(this).children().hasClass('icon-chakan')){
		$(this).children().removeClass('icon-chakan').addClass('icon-yincang');
		$(this).siblings('input').attr('type','password')
	} else{
		$(this).children().removeClass('icon-yincang').addClass('icon-chakan');
		$(this).siblings('input').attr('type','text')
	}
})
//手机号邮箱注册切换命令
$('.register-content-method>div').click(function(){
	$(this).css("background-color",'rgba(0, 0, 0, 0.05)').siblings().css("background-color",'#fff')
})
$('.register-content-method-phone').click(function(){
	$('.phone-register').show();
	$('.mail-register').hide()
})
$('.register-content-method-mail').click(function(){
	$('.mail-register').show();
	$('.phone-register').hide()
})
// 表单验证
